package com.qlogic.commons.utils.reflect;

public class DefaultClassDecorator implements ClassDecorator {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -1203979077463711110L;
	
	public DecoratedSource decorate (Class clazz, PackageDescriptor packageDescriptor) {
		return new DecoratedSource (ReflectUtils.getShortClassName (clazz), clazz);
	}

	public int compare (Object ds1, Object ds2) {
		return ((DecoratedSource)ds1).getName().compareTo (((DecoratedSource)ds2).getName());
	}

}
